package com.zzy.beanutil;

import org.junit.Test;

import jodd.bean.BeanUtil;
import jodd.typeconverter.TypeConverterManager;

public class TestBean {

  @Test
  public void testBeanUtil() {
        UserPojo userPojo = new UserPojo();
      
        BeanUtil.setProperty(userPojo, "name", "zhaoyang"); //设置name属性值为zhaoyang
        System.out.println(">>>>> " + BeanUtil.getProperty(userPojo, "name")); //获取name属性值

      
        
        //类型转换，将字符串“23”转换为Integer类型
        int dd = TypeConverterManager.convertType("23", Integer.class); 
        System.out.println("@@ " + (dd - 3));

        
    }


}
